<?php
namespace app\controller;

use app\BaseController;

class Index extends BaseController
{
    public function index()
    {
        return redirect('start');
    }

    public function hello()
    {
        $menu = [
            'homeInfo' => ['title'=>'首页', 'href'=>''],
            
        ];
        return json(json_decode('
  {
    "homeInfo":{
        "title":"首页",
        "href":"start/page/home.html?t=1"
    },
    "logoInfo":{
        "title":"LAYUI MINI",
        "image":"start/images/logo.png",
        "href":""
    },
    "menuInfo":[
        {
            "title":"常规管理",
            "icon":"fa fa-address-book",
            "href":"",
            "target":"_self",
            "child":[
                {
                    "title":"主页模板",
                    "href":"",
                    "icon":"fa fa-home",
                    "target":"_self",
                    "child":[
                        {
                            "title":"主页一",
                            "href":"page/welcome-1.html",
                            "icon":"fa fa-tachometer",
                            "target":"_self"
                        }
                    ]
                },
                {
                    "title":"用户管理",
                    "href":"start/page/member.html",
                    "icon":"fa fa-window-maximize",
                    "target":"_self"
                },
                {
                    "title":"角色管理",
                    "href":"start/page/role.html",
                    "icon":"fa fa-window-maximize",
                    "target":"_self"
                },
                {
                    "title":"系统设置",
                    "href":"page/setting.html",
                    "icon":"fa fa-gears",
                    "target":"_self"
                }
            ]
        }
        
    ]
}
        '));
    }
}
